<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ page isELIgnored="false" %>

<%
    String path = request.getContextPath();
%>
<jsp:include page="/admin/inc/incHead.jsp" flush="false"/>
<script>
    function classCheck() {/*点卡类别信息校验*/
        if (document.formAdd.className.value.length < 1) {
            alert("请输入类别名称");
            document.formAdd.className.focus();
            return;
        }
        if (document.formAdd.classInfo.value.length < 1) {
            alert("请输入类别详情");
            document.formAdd.classInfo.focus();
            return;
        }
        document.formAdd.submit();
    }
</script>
<form action="<%=path %>/class/classEdit.action" name="formAdd" method="post">
    <input type="hidden" name="classId" value="${clazz.classId}">
    <table class="table-bordered table">
        <tr bgcolor="#EEF4EA">
            <td colspan="3" class='title'><span>商品类别</span></td>
        </tr>
        <tr align='center'>
            <td width="25%" align="right">
                类别名称：
            </td>
            <td width="75%" align="left">
                <input type="text" name="className" size="20" value="${clazz.className}"/>
            </td>
        </tr>
        <tr align='center'>
            <td width="25%" align="right">
                类别描述：
            </td>
            <td width="75%" align="left">
                <input type="text" name="classInfo" size="128" value="${clazz.classInfo}"/>
            </td>
        </tr>
        <tr align='center'>
            <td width="25%" align="right">
                &nbsp;
            </td>
            <td width="75%" align="left">
                <input class="btn btn-info" type="button" onclick="classCheck()" value="修改"/>&nbsp;
            </td>
        </tr>
    </table>
</form>
<jsp:include page="/admin/inc/incFoot.jsp" flush="false"/>
